﻿@using ProjectHopur23.Models
<link rel="stylesheet" type="text/css" href="/Content/bootstrap.css" />
<link rel="stylesheet" type="text/javascript" href="/Scripts/bootstrap.js" />
<link rel="stylesheet" type="text/javascript" href="/Scripts/jquery-1.8.2.js" />
<link rel="stylesheet" type="text/css" href="/Content/Site.css" />


<h1>Admin</h1>

<h2>Notendur</h2>
<p>Hér er listi af notendum síðunnar. Smelltu á nafn til að breyta upplýsingum um viðkomandi.</p>

<div id="listOfUsers">
	<table>
		<caption>Notendur</caption>
		<thead>
			<tr>
				<th scope="col">Nafn</th>
				<th scope="col">Netfang</th>
			</tr>
		</thead>
		<tbody>
		@{
			foreach(UserProfile au in Model)
			{
				<tr>
					<td>@Html.ActionLink(au.UserName, "ChangeUser/" + au.UserId, "Admin", null, new { @class = "btn btn-mini " })</td>
					<td>@au.email</td>
				</tr>
			}
		}
		</tbody>
	</table>
</div>
